package es.aa.android.cartomatic.appview.listener;

import android.content.ClipData;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.DragShadowBuilder;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;

public class ClickListener implements OnTouchListener {

	@Override
	public boolean onTouch(View view, MotionEvent event) {
		
		ClipData data = ClipData.newPlainText("", "");
		DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view);
		view.startDrag(data, shadowBuilder, view, 0);
		// TODO MIRAR POR QUE VA MAL CON ONTOUCH view.setAlpha(0.5f);
		return false;
	}

}